#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>

int main(){
    const char *fstr = "hello fwrite\n";
    const char *str = "hello write\n";
    
    //C接口函数
    printf("hello printf\n");
    fprintf(stdout,"hello fprintf\n");
    fwrite(fstr, strlen(fstr), 1, stdout);
    
    //系统调用函数
    write(1,str,strlen(str));

    //close(1);
    //fork();

    return 0;
}
